<!DOCTYPE html>
<html>

<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title>好友列表</title>
    <link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css" rel="stylesheet" type="text/css">
    <link href="{$Think.config.RESOURCEURL}wx_assets/freebuy/freebuy.css{$Think.config.RESOURCE_VER}" rel="stylesheet" type="text/css">
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
</head>
<body>
<div class="personList">
    <if condition="$friendCount gt 0">
        <dl>
            <dt>您目前邀请了<span>{$friendCount}</span>位好友</dt>
            <volist name="friendList" id="item">
                <dd>
                    <img src="{$item.headimgurl}">
                    <span class="time">{$item.createTime}</span>
                    <span class="name">{$item.nickname}</span>
                </dd>
            </volist>
        </dl>
    <else/>
         <div class="norecord">
            您目前还没有邀请任何好友    
        </div>
    </if>
</div>
</body>
<script>
    var baseUrl = '{$Think.config.SERVER_HOST}';
    function getShareUrl(){
        var shareUrl="";
        var me=this;
        var params={
            "oid":"{$id}",
            "qId":"{$qId}",
            "miUId":"{$miUid}"
        };
        params=encodeURIComponent(JSON.stringify(params));
        shareUrl=baseUrl+'call.html?customerId={$customerId}&module=freebuy&method=getQrCode&params='+params;
        return shareUrl;
    }
    var shareUrl=getShareUrl();
     wx_share.init({
        "title":'快来帮我抢呀，【{$productList.name}】仅需1元！',
        "desc":"我能不能抢到，全看你的了，你看着办吧。",
        "link":shareUrl,
        "imgUrl":"{$headimgurl}",
        "pkg":{
            "appId": '{$pkg.appId}',
            "timestamp": {$pkg.timestamp},
            "nonceStr": '{$pkg.nonceStr}',
            "signature": '{$pkg.signature}'
        },
        success:function(config,shareType){
           
        }
    });
</script>

</html>
